﻿@model BookClubPortal.ViewModels.EmailContent

@{
    ViewBag.Title = "Contact";
}

@if (Model == null)
{
    <h2>Contact us</h2>

    using (Html.BeginForm())
    {
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>EmailContent</legend>

            <div class="editor-label">
                @Html.LabelFor(model => model.Subject)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Subject)
                @Html.ValidationMessageFor(model => model.Subject)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Message)
            </div>
            <div class="editor-field">
                @Html.TextAreaFor(model => model.Message)
                @Html.ValidationMessageFor(model => model.Message)
            </div>

            <p>
                <input type="submit" value="Send" />
            </p>
        </fieldset>
    }
}
else
{
    <h2>Thank you for your message, we will read it soon!</h2>
}


@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
